package com.qf.springcloud.order.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.checkerframework.checker.units.qual.A;
import org.springframework.context.annotation.Configuration;

@Configuration
@A
public class MyRibbonConfig {
    //修改了负载均衡的规则
    public IRule iRule(){
        return new RandomRule();
    }
}
